import styled from "styled-components";
import banner from '../../assets/images/banner.png'
export const Container = styled.div`
  display:flex;
  width:960px;
  margin: 0 auto;
  color:#333333;
`;

export const Left = styled.div`
  width: 625px;
  padding:30px 0 0 15px;
`;

export const Right = styled.div`
  width: 280px;
  padding:30px 0 0;
  margin-left: 40px;
`;

export const Banner = styled.div`
  width:100%;
  height: 270px;
  margin-bottom:20px;
  border-radius:5px;
  background-image: url(${banner});
  background-size:100%;
`;


export const ListContainer = styled.div`
  margin-top:20px;
`;

export const ListItem = styled.div`
  min-height:140px;
  position: relative;
  width: 100%;
  margin: 0 0 15px;
  padding: 15px 2px  20px 0;
  border-bottom: 1px solid #f0f0f0;
  word-wrap: break-word;
  line-height: 20px;
  .content {
    a {
      color: #333;
    }
    & .title {
      margin: -7px 0 4px;
      display: inherit;
      font-size: 18px;
      font-weight: 700;
      line-height: 1.5;
    }
    & .abstract {
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 24px;
    color: #999;
    }
    & .meta {
      padding-right: 0!important;
      font-size: 12px;
      font-weight: 400;
      line-height: 20px;
      span {
        margin-right: 10px;
        color: #b4b4b4;
      }
      .jsd-meta {
        color: #ea6f5a!important;
      }
      a {
        margin-right: 10px;
        color: #b4b4b4;
      }
    }
  }
  .wrap-img {
    width: 150px;
    height: 100px;
    position: absolute;
    top: 50%;
    margin-top: -60px;
    right: 0;
    img {
      width: 100%;
      height: 100%;
      border-radius: 4px;
      border: 1px solid #f0f0f0;
      vertical-align: middle;
    }
  }
`;

export const TopWapper = styled.div`
  display:flex;
  flex-wrap:wrap;
  margin-left:10px;
`;

export const TopicListItem = styled.div`
  width:100px;
  display:flex;
  justify-content:space-between;
  align-items: center;
  border:1px solid #ccc;
  padding-right:10px;
  margin: 10px 10px 0 0;
  img{
    width:50px;
  }
  h4 {
    font-size:12px;
  }
`;

export const ImgWapper = styled.div`
    margin-top: -4px;
    padding-bottom: 4px;
    min-height: 228px;
    
`;

export const ImgListItem = styled.div`
  a {
      cursor: pointer;
    }
  img {
    width: 100%;
    min-height: 50px;
    margin-bottom: 6px;
    border-radius: 4px;
    vertical-align: middle;
    border: 0;
  }
`;

export const DownloadApp = styled.div`
  width:235px;
  /* overflow:hidden; */
  .download {
    position: relative;
    float: left;
    margin-bottom: 30px;
    padding: 10px 22px;
    width: 100%;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    background-color: #fff;
    .bigCode {
      visibility:hidden;
      opacity:0;
      transition:all .5s;
      position: absolute;
      top:-180px;
      width:150px;
      height: 150px;
      background-color:#fff;
      border:1px solid #444;
      border-radius:4px;
      padding:10px;
      img {
        width: 100%;
        height: 100%;
      }
      .down {
        position: absolute;
        bottom:-9px;
        left: 50%;
        width: 15px;
        height: 15px;
        background-color:#fff;
        border-bottom: 1px solid #444;
        border-right: 1px solid #444;
        transform:translate(-50%) rotate(45deg);
      }
    }
    
    .qrcode {
      width: 60px;
      height: 60px;
      opacity: .85;
    }
    img {
      vertical-align: middle;
      border: 0;
    }
    .info {
      display: inline-block;
      vertical-align: middle;
      margin-left: 7px;
      .title {
          font-size: 15px;
          color: #333;
      }
      .description {
          margin-top: 4px;
          font-size: 13px;
          color: #999;
      }
    }
  }
  .download:hover {
    .bigCode {
      visibility:visible;
      opacity:1;
      transition:all .5s; 
    }
  }
`;

export const RecommendWapper = styled.div`
  .title {
    text-align:left;
    span {
      font-size: 14px;
      color: #969696;
    }
    .page-change {
      float: right;
      /* display: inline-block; */
      font-size: 14px;
      color: #969696;
      cursor: pointer;
  }
}
`;

export const RecommendList = styled.ul`
  margin-bottom:20px;
  li {
    margin-top: 15px;
    line-height: 20px;
    .avatar {
      float: left;
      width: 48px;
      height: 48px;
      margin-right: 10px;
      display: block;
      cursor: pointer;
      img {
        width: 100%;
        height: 100%;
        border: 1px solid #ddd;
        border-radius: 50%;
        vertical-align: middle;
      }
    }
    .follow {
      float: right;
      margin-top: 5px;
      padding: 0;
      font-size: 13px;
      color: #42c02e;
      font-weight: 400;
      line-height: normal;
    }
    .name {
        padding-top: 5px;
        margin-right: 60px;
        font-size: 14px;
        display: block;
    }
    p {
    margin-top: 2px;
    font-size: 12px;
    color: #969696;
    margin: 0 0 10px;
    }
  }

`;

export const FindMore = styled.div`
  position: relative;
  width:260px;
  .find-more {
    position: absolute;
    padding: 7px 7px 7px 12px;
    left: 0;
    width: 100%;
    font-size: 13px;
    color: #787878;
    background-color: #f7f7f7;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    text-align:center;
  }
`;

export const LoadMore = styled.div`
  width:100%;
  background-color: #a5a5a5;
  color:#fff;
  font-size:15px;
  height:40px;
  margin:30px auto 60px;
  padding:10px 15px;
  border-radius:20px;
  box-sizing:border-box;
  cursor: pointer;
  p {
    text-align: center;
  }
`;

export const BackToTop = styled.div`
  /* display:none; */
  position: fixed;
  right:50px;
  bottom:50px;
  width:50px;
  height: 50px;
  background-color: #ccc;
  color:#fff;
  span {
    font-size:15px;
  }
`;